﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenGado.DATA;
using OpenGado.DATA.Entities;
using OpenGado.Business;

namespace OpenGado.Business
{
   public class IssueBusiness
    {
       /// <summary>
       /// Deletes issue request
       /// </summary>
       private void DeleteIssueRequest(int requestId)
       {
            // get it from db. 
           IssueItemHeader header =  IssueItemsDataControl.Instance.GetIssueHeader(requestId);

           // check if it hasnt been issued
           if (header.RequestStatus != "Complete")
           {
               IssueItemsDataControl.Instance.DeleteHeader(header);
           }

       }

       private void MarkComplete ()
       {
           
       }
    }
}
